<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../common.inc" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="./css/style1.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript">
<!--
	function back(){
		window.location.href = "customerList.html";
		window.location.target = "main";
	}
	
	function showHidden(id){
		var obj = document.getElementById(id);
		if(obj.style.display == "none"){
			document.getElementById(id).style.display = "block";
			document.getElementById("img"+id).src = "./images/nolines_minus.gif";
		}else{
			document.getElementById(id).style.display = "none";
			document.getElementById("img"+id).src = "./images/nolines_plus.gif";
		}
	}
-->
</script>
</head>
<body style="">
	<div style="width:100%;height:350px;overflow-x: hidden;overflow-y: scroll;">
	<table class="table">
		<tr id="tBaseInfo">
			<td>
				<table class="table_add" style="display: block;">
					<tr>
						<td class="title_top" colspan="2"><fmt:message key='customer.lable.baseInfo'/></td>
					</tr>
					<tr>
						<td class="title"><!-- 客户编号 -->
							<c:choose>
								<c:when test="${language == 2}">${records['11'].currentRecordEn}：</c:when>
								<c:otherwise>${records['11'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">
							${customer.customerCode}<input id="customerCode" name="customerCode" type="hidden" value="${customer.customerCode}"/>
							<input id="id" name="id" type="hidden" value="${customer.id}"/>
						</td>
					</tr>
					<tr>
						<td class="title"><!-- 客户名称 -->
							<c:choose>
								<c:when test="${language == 2}">${records['12'].currentRecordEn}：</c:when>
								<c:otherwise>${records['12'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">${customer.customerName}</td>
					</tr>
					<tr>
						<td class="title" width=""><!-- 地址 -->
							<c:choose>
								<c:when test="${language == 2}">${records['13'].currentRecordEn}：</c:when>
								<c:otherwise>${records['13'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">${customer.address}</td>
					</tr>
					<tr>
						<td class="title" width=""><!-- 总机 -->
							<c:choose>
								<c:when test="${language == 2}">${records['14'].currentRecordEn}：</c:when>
								<c:otherwise>${records['14'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">${customer.phone}</td>
					</tr>
					<tr>
						<td class="title" width=""><!-- 传真 -->
							<c:choose>
								<c:when test="${language == 2}">${records['15'].currentRecordEn}：</c:when>
								<c:otherwise>${records['15'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">${customer.fax}</td>
					</tr>
					<tr>
						<td class="title" width=""><!-- 客户来源 -->
							<c:choose>
								<c:when test="${language == 2}">${records['16'].currentRecordEn}：</c:when>
								<c:otherwise>${records['16'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">
							<c:choose>
								<c:when test="${customer.customerSourceId == 1}"><fmt:message key='customer.select.self'/></c:when>
								<c:when test="${customer.customerSourceId == 2}"><fmt:message key='customer.select.companySet'/></c:when>
								<c:when test="${customer.customerSourceId == 3}"><fmt:message key='customer.select.market'/></c:when>
								<c:otherwise><fmt:message key='customer.select.other'/></c:otherwise>
							</c:choose>
						</td>
					</tr>
					<tr>
						<td class="title"><fmt:message key='customer.lable.shareuser'/><fmt:message key='common.sign'/></td>
						<td width="">${customer.shareSalePersons}</td>
					</tr>
					<tr>
						<td class="title"><fmt:message key='customer.lable.saleperson'/><fmt:message key='common.sign'/></td>
						<td width="">${customer.salePerson}</td>
					</tr>
					<tr>
						<td class="title" width=""><!-- 预测签约 -->
							<c:choose>
								<c:when test="${language == 2}">${records['17'].currentRecordEn}：</c:when>
								<c:otherwise>${records['17'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">
							<fmt:formatDate value='${customer.predictContract}' pattern='yyyy-MM-dd'/>
						</td>
					</tr>
					<tr>
						<td class="title" width=""><!-- 预测金额 -->
							<c:choose>
								<c:when test="${language == 2}">${records['18'].currentRecordEn}：</c:when>
								<c:otherwise>${records['18'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">
							<c:choose>
								<c:when test="${customer.predictCost != null}">${customer.predictCost}</c:when>
								<c:otherwise>0.00</c:otherwise>
							</c:choose><fmt:message key='common.lable.yuan'/>
						</td>
					</tr>
					<tr>
						<td class="title"><!-- 需求描述 -->
							<c:choose>
								<c:when test="${language == 2}">${records['19'].currentRecordEn}：</c:when>
								<c:otherwise>${records['19'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="" class="textarea_vdesc"><pre>${customer.requireDesc}</pre></td>
					</tr>
				</table>
			</td>
		</tr>
	</table>		
	
	
	<table class="table">
		<tr>
			<td class="title_info" colspan="2" onclick="showHidden('2')">
				<img id="img2" src="./images/nolines_minus.gif">
				<fmt:message key='customer.lable.moreInfo'/>
			</td>
		</tr>
		<tr id="2">
			<td>
				<table class="table_add">
					<c:if test="${records['110'].status == 1}">
					<tr>
						<td class="title"><!-- 行业 -->
							<c:choose>
								<c:when test="${language == 2}">${records['110'].currentRecordEn}：</c:when>
								<c:otherwise>${records['110'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">
							<c:forEach var="range" items="${ranges['110']}">
								<c:if test='${customer.industryId == range.id}'>${range.rangeValue}</c:if>
							</c:forEach>
						</td>
					</tr>
					</c:if>
					<c:if test="${records['127'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 行业细分 -->
							<c:choose>
								<c:when test="${language == 2}">${records['127'].currentRecordEn}：</c:when>
								<c:otherwise>${records['127'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">
							<c:forEach var="range" items="${ranges['127']}">
								<c:if test='${customer.subIndustryId == range.id}'>${range.rangeValue}</c:if>
							</c:forEach>
						</td>
					</tr>
					</c:if>
					<c:if test="${records['111'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 区域 -->
							<c:choose>
								<c:when test="${language == 2}">${records['111'].currentRecordEn}：</c:when>
								<c:otherwise>${records['111'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">
							<c:forEach var="range" items="${ranges['111']}">
								<c:if test='${customer.areaId == range.id}'>${range.rangeValue}</c:if>
							</c:forEach>
						</td>
					</tr>
					</c:if>
					<c:if test="${records['112'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 产值 -->
							<c:choose>
								<c:when test="${language == 2}">${records['112'].currentRecordEn}：</c:when>
								<c:otherwise>${records['112'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">
							<c:forEach var="range" items="${ranges['112']}">
								<c:if test='${customer.outputValueId == range.id}'>${range.rangeValue}</c:if>
							</c:forEach>
						</td>
					</tr>
					</c:if>
					<c:if test="${records['113'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 企业类型 -->
							<c:choose>
								<c:when test="${language == 2}">${records['113'].currentRecordEn}：</c:when>
								<c:otherwise>${records['113'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">
							<c:forEach var="range" items="${ranges['113']}">
								<c:if test='${customer.companyTypeId == range.id}'>${range.rangeValue}</c:if>
							</c:forEach>
						</td>
					</tr>
					</c:if>
					<c:if test="${records['114'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 公司网址 -->
							<c:choose>
								<c:when test="${language == 2}">${records['114'].currentRecordEn}：</c:when>
								<c:otherwise>${records['114'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">${customer.http}</td>
					</tr>
					</c:if>
					<c:if test="${records['115'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 利润 -->
							<c:choose>
								<c:when test="${language == 2}">${records['115'].currentRecordEn}：</c:when>
								<c:otherwise>${records['115'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">
							<c:forEach var="range" items="${ranges['115']}">
								<c:if test='${customer.profitsId == range.id}'>${range.rangeValue}</c:if>
							</c:forEach>
						</td>
					</tr>
					</c:if>
					<c:if test="${records['116'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 员工数量 -->
							<c:choose>
								<c:when test="${language == 2}">${records['116'].currentRecordEn}：</c:when>
								<c:otherwise>${records['116'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">
							<c:forEach var="range" items="${ranges['116']}">
								<c:if test='${customer.employeeNumId == range.id}'>${range.rangeValue}</c:if>
							</c:forEach>
						</td>
					</tr>
					</c:if>
					<c:if test="${records['117'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 客户简称 -->
							<c:choose>
								<c:when test="${language == 2}">${records['117'].currentRecordEn}：</c:when>
								<c:otherwise>${records['117'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">${customer.customerSimple}</td>
					</tr>
					</c:if>
					<c:if test="${records['118'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 税号 -->
							<c:choose>
								<c:when test="${language == 2}">${records['118'].currentRecordEn}：</c:when>
								<c:otherwise>${records['118'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">${customer.taxCode}</td>
					</tr>
					</c:if>
					<c:if test="${records['119'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 开户行 -->
							<c:choose>
								<c:when test="${language == 2}">${records['119'].currentRecordEn}：</c:when>
								<c:otherwise>${records['119'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">
							<c:forEach var="range" items="${ranges['119']}">
								<c:if test='${customer.bankDepositId == range.id}'>${range.rangeValue}</c:if>
							</c:forEach>
						</td>
					</tr>
					</c:if>
					<c:if test="${records['120'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 邮编 -->
							<c:choose>
								<c:when test="${language == 2}">${records['120'].currentRecordEn}：</c:when>
								<c:otherwise>${records['120'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">${customer.zip}</td>
					</tr>
					</c:if>
					<c:if test="${records['121'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 是否上市 -->
							<c:choose>
								<c:when test="${language == 2}">${records['121'].currentRecordEn}：</c:when>
								<c:otherwise>${records['121'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">
							<c:forEach var="range" items="${ranges['121']}">
								<c:if test='${customer.isMarketId == range.id}'>${range.rangeValue}</c:if>
							</c:forEach>
						</td>
					</tr>
					</c:if>
					<c:if test="${records['122'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 独立采购权 -->
							<c:choose>
								<c:when test="${language == 2}">${records['122'].currentRecordEn}：</c:when>
								<c:otherwise>${records['122'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">
							<c:forEach var="range" items="${ranges['122']}">
								<c:if test='${customer.isPurchaseId == range.id}'>${range.rangeValue}</c:if>
							</c:forEach>
						</td>
					</tr>
					</c:if>
					<c:if test="${records['123'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 客户类型 -->
							<c:choose>
								<c:when test="${language == 2}">${records['123'].currentRecordEn}：</c:when>
								<c:otherwise>${records['123'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">
							<c:forEach var="range" items="${ranges['123']}">
								<c:if test='${customer.customerTypeId == range.id}'>${range.rangeValue}</c:if>
							</c:forEach>
						</td>
					</tr>
					</c:if>
					<c:if test="${records['124'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 国家 -->
							<c:choose>
								<c:when test="${language == 2}">${records['124'].currentRecordEn}：</c:when>
								<c:otherwise>${records['124'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">
							<c:forEach var="range" items="${ranges['124']}">
								<c:if test='${customer.countryId == range.id}'>${range.CName}</c:if>
							</c:forEach>
						</td>
					</tr>
					</c:if>
					<c:if test="${records['125'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 省级 -->
							<c:choose>
								<c:when test="${language == 2}">${records['125'].currentRecordEn}：</c:when>
								<c:otherwise>${records['125'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">
							<c:forEach var="range" items="${ranges['125']}">
								<c:if test='${customer.provinceId == range.id}'>${range.CName}</c:if>
							</c:forEach>
						</td>
					</tr>
					</c:if>
					<c:if test="${records['126'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 市级 -->
							<c:choose>
								<c:when test="${language == 2}">${records['126'].currentRecordEn}：</c:when>
								<c:otherwise>${records['126'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">
							<c:forEach var="range" items="${ranges['126']}">
								<c:if test='${customer.cityId == range.id}'>${range.CName}</c:if>
							</c:forEach>
						</td>
					</tr>
					</c:if>
					<c:if test="${records['128'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 客户集群 -->
							<c:choose>
								<c:when test="${language == 2}">${records['128'].currentRecordEn}：</c:when>
								<c:otherwise>${records['128'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">
							<c:forEach var="range" items="${ranges['128']}">
								<c:if test='${customer.clusterId == range.id}'>${range.rangeValue}</c:if>
							</c:forEach>
						</td>
					</tr>
					</c:if>
					<c:if test="${records['129'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 客户规模 -->
							<c:choose>
								<c:when test="${language == 2}">${records['129'].currentRecordEn}：</c:when>
								<c:otherwise>${records['129'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">
							<c:forEach var="range" items="${ranges['129']}">
								<c:if test='${customer.scaleId == range.id}'>${range.rangeValue}</c:if>
							</c:forEach>
						</td>
					</tr>
					</c:if>
					<c:if test="${records['130'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 母公司 -->
							<c:choose>
								<c:when test="${language == 2}">${records['130'].currentRecordEn}：</c:when>
								<c:otherwise>${records['130'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">${customer.parentCompany}</td>
					</tr>
					</c:if>
					<c:if test="${records['131'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 自定义母级 -->
							<c:choose>
								<c:when test="${language == 2}">${records['131'].currentRecordEn}：</c:when>
								<c:otherwise>${records['131'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">
							<c:forEach var="range" items="${ranges['131']}">
								<c:if test='${customer.customParentId == range.id}'>${range.rangeValue}</c:if>
							</c:forEach>
						</td>
					</tr>
					</c:if>
					<c:if test="${records['132'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 自定义子级 -->
							<c:choose>
								<c:when test="${language == 2}">${records['132'].currentRecordEn}：</c:when>
								<c:otherwise>${records['132'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">
							<c:forEach var="range" items="${ranges['132']}">
								<c:if test='${customer.customSublevelId == range.id}'>${range.rangeValue}</c:if>
							</c:forEach>
						</td>
					</tr>
					</c:if>
					<c:if test="${records['133'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 自定义分类1 -->
							<c:choose>
								<c:when test="${language == 2}">${records['133'].currentRecordEn}：</c:when>
								<c:otherwise>${records['133'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">
							<c:forEach var="range" items="${ranges['133']}">
								<c:if test='${customer.customTypeId1 == range.id}'>${range.rangeValue}</c:if>
							</c:forEach>
						</td>
					</tr>
					</c:if>
					<c:if test="${records['134'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 自定义分类2 -->
							<c:choose>
								<c:when test="${language == 2}">${records['134'].currentRecordEn}：</c:when>
								<c:otherwise>${records['134'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">
							<c:forEach var="range" items="${ranges['134']}">
								<c:if test='${customer.customTypeId2 == range.id}'>${range.rangeValue}</c:if>
							</c:forEach>
						</td>
					</tr>
					</c:if>
					<c:if test="${records['135'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 自定义分类3 -->
							<c:choose>
								<c:when test="${language == 2}">${records['135'].currentRecordEn}：</c:when>
								<c:otherwise>${records['135'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">
							<c:forEach var="range" items="${ranges['135']}">
								<c:if test='${customer.customTypeId3 == range.id}'>${range.rangeValue}</c:if>
							</c:forEach>
						</td>
					</tr>
					</c:if>
					<c:if test="${records['136'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 自定义分类4 -->
							<c:choose>
								<c:when test="${language == 2}">${records['136'].currentRecordEn}：</c:when>
								<c:otherwise>${records['136'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">${customer.customType4}</td>
					</tr>
					</c:if>
					<c:if test="${records['137'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 自定义分类5 -->
							<c:choose>
								<c:when test="${language == 2}">${records['137'].currentRecordEn}：</c:when>
								<c:otherwise>${records['137'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">${customer.customType5}</td>
					</tr>
					</c:if>
					<c:if test="${records['138'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 自定义分类6 -->
							<c:choose>
								<c:when test="${language == 2}">${records['138'].currentRecordEn}：</c:when>
								<c:otherwise>${records['138'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">${customer.customType6}</td>
					</tr>
					</c:if>
					<c:if test="${records['139'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 自定义项1 -->
							<c:choose>
								<c:when test="${language == 2}">${records['139'].currentRecordEn}：</c:when>
								<c:otherwise>${records['139'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">${customer.customItem1}</td>
					</tr>
					</c:if>
					<c:if test="${records['140'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 自定义项2 -->
							<c:choose>
								<c:when test="${language == 2}">${records['140'].currentRecordEn}：</c:when>
								<c:otherwise>${records['140'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">${customer.customItem2}</td>
					</tr>
					</c:if>
					<c:if test="${records['141'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 自定义项3 -->
							<c:choose>
								<c:when test="${language == 2}">${records['141'].currentRecordEn}：</c:when>
								<c:otherwise>${records['141'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">${customer.customItem3}</td>
					</tr>
					</c:if>
					<c:if test="${records['142'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 自定义项4 -->
							<c:choose>
								<c:when test="${language == 2}">${records['142'].currentRecordEn}：</c:when>
								<c:otherwise>${records['142'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">
							<c:forEach var="range" items="${ranges['142']}">
								<c:if test='${customer.customItemId4 == range.id}'>${range.rangeValue}</c:if>
							</c:forEach>
						</td>
					</tr>
					</c:if>
					<c:if test="${records['143'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 自定义项5 -->
							<c:choose>
								<c:when test="${language == 2}">${records['143'].currentRecordEn}：</c:when>
								<c:otherwise>${records['143'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">
							<c:forEach var="range" items="${ranges['143']}">
								<c:if test='${customer.customItemId5 == range.id}'>${range.rangeValue}</c:if>
							</c:forEach>
						</td>
					</tr>
					</c:if>
					<c:if test="${records['144'].status == 1}">
					<tr>
						<td class="title" width=""><!-- 自定义项6 -->
							<c:choose>
								<c:when test="${language == 2}">${records['144'].currentRecordEn}：</c:when>
								<c:otherwise>${records['144'].currentRecord}：</c:otherwise>
							</c:choose>
						</td>
						<td width="">
							<c:forEach var="range" items="${ranges['144']}">
								<c:if test='${customer.customItemId6 == range.id}'>${range.rangeValue}</c:if>
							</c:forEach>
						</td>
					</tr>
					</c:if>
				</table>
			</td>
		</tr>
	</table>
	</div>		
</body>
</html>